<template>
    <div class="confirm_window">
        <!-- 申请成功返回提示 -->
        <el-dialog
            v-drag
            :close-on-click-modal="false"
            :visible.sync="showWindow"
            :show-close="false"
            append-to-body
            center
            width="500px"
        >
            <div slot="title" id="dialog_header">
                <i class="el-icon-success"></i>
                <span>{{ title }}</span>
            </div>
            <el-form :model="ApplydailyForm" :label-width="label_width" size="small">
                <el-form-item v-for="(item, i) in dataList" :key="i" :label="item.keys">
                    <el-input disabled :value="item.values" style="width: 200px"></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" size="small" @click="coles" icon="el-icon-circle-check">确定</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
export default {
    data() {
        return {
            ApplydailyForm: {},
            showWindow: true,
        };
    },
    name: 'ConfirmWindow',
    props: {
        dataList: {
            type: Array,
            default: [
                { keys: '暂无数据 : ', values: '暂无数据' },
            ],
        },
        title: {
            type: String,
            default: '按日贷款申请成功,请勿重复申请！',
        },
        label_width: {
            type: String,
            default: '180px',
        },
    },

    methods: {
        coles() {
            this.$emit('isShow', false);
        },
    },
};
</script>

<style lang="scss" >
.confirm_window {
}
</style>
